$(function () {
    getNav()
});
function getNav() {
    let result = myAjax('/getNav', 'post', {});
    let data = result.list;
    let html = "";
    for (let i = 0; i < data.length; i++) {
        html += '<div class="menu1-info" onclick="setTypeId()"><a href="'+data[i].href+'">'+data[i].name+'</a></div>';
    }
    $("#navList").html(html);
}
function setTypeId() {
localStorage.setItem("typeId","");
}